﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;

namespace MyMvcFirst.Controllers
{
    public class HelloController : Controller
    {

        public IActionResult Index()
        {
            return View();
        }

        // 
        // GET: /HelloWorld/Welcome/ 

        public IActionResult Welcome(string name, int id = 10)
        {
            ViewData["message"] = "hello" + name;
            ViewData["Id"] = id;
            return View();
        }
    }
}